<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文件管理</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
<form name="form1" method="post"  id="form1"  enctype="multipart/form-data" >
  <div class="list_border">
  <div class="tools">
    <div style="margin: 0 0 0 2px;">
      <p> 操作</p>
      <a class="button_add" title="发布新文件"   href="./index.php?c=admin&a=expert&mod=manage&act=frame">添加新记录<a/> </div>
  </div>
  <div class="box">
    <div class="pic"  style="height:420px;"> 
    <{foreach from=$res item=datil key=id}>
      <div style="display:block; width:165px; height:130px; margin:5px 8px; float:left; ">
        <div class="YQ_list" > <a href='<{$datil.upload_url}>' target=_blank><{$datil.upload_name|truncate:10:"……"}></a></div>
        <div class="YQ_Edit" style="height:100px;"> <a class="linkEdit" title="编辑友情链接"   href="./index.php?c=admin&a=file&mod=manage&act=modify&id=<{$datil.id}>">编辑<a/> <a class="linkDel" href="./index.php?c=admin&a=file&mod=manage&act=del&id=<{$datil.id}>" >删除</a>
          <hr style="color:#09F"/>
          发布日期：<{$datil.upload_dategmt|date_format:"%Y-%m-%d"}> <br />
          最后编辑：<{$datil.upload_author|truncate:10:"……"}> <br />
          <{if $datil.upload_status==0}><font color="#999999">[已屏蔽]</font><{else}>显示顺序：<{$datil.show_order}><{/if}></div>
      </div>
      <{/foreach}>
      </div>
</div>
<{if $pager}>
<div class="sabrosus">
共计<{$pager.total_count}>条记录，分<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<{if $pager.current_page != $pager.first_page}>
<a href="<{spUrl c=admin a=file mod=manage page=$pager.first_page}>">&lt;</a>  
<a href="<{spUrl c=admin a=file mod=manage page=$pager.prev_page}>">上一页</a> 
<{/if}>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<{foreach from=$pager.all_pages item=thepage}>
	<{if $thepage != $pager.current_page}>
		<a href="<{spUrl c=admin a=file mod=manage page=$thepage}>"><{$thepage}></a>
	<{else}>
		<span class="current"><{$thepage}></span>
	<{/if}>
<{/foreach}>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<{if $pager.current_page != $pager.last_page}>
<a href="<{spUrl c=admin a=file mod=manage page=$pager.next_page}>">下一页</a> 
<a href="<{spUrl c=admin a=file mod=manage page=$pager.last_page}>">&gt;</a>
<{/if}>
</div>
<{/if}>      
  </div>
</form>
<script type="text/javascript">
$(function() {
	$("img").error(function() {  
     <!--$("img").replaceWith("没有图片");-->  
     $(this).attr("src", "./images/noimg.png");   
           })
	$(".button_add").boxy();
	$(".linkEdit").boxy();
	$(".linkDel").click(function() {tempUrl=$(this).attr("href"); Boxy.confirm("确定删除此条信息？", function() {window.location.href=tempUrl}, {title: "提示信息"}); return false; });
});
</script> 
<!--WORK OF CAN.WENG jan 19th,2012-->
</body>
</html>
